<div class="form tres_colunas">
	<?php if( $msg ) 
			echo '<script type="text/javascript">alert("'.$msg.'");</script>'; ?>
	<div class="titulo_pagina">
		<p> CADASTRO STATUS </p>
	</div>
	<div>
	<?php 
		echo $this->Form->create('Status');
		echo $this->Form->input('id');
		echo $this->Form->input('cod', array('label' => 'COD. STATUS', 'value' => $id, 'readonly' => true));
		echo $this->Form->input('nome', array('label' => 'NOME STATUS <b>*</b>'));
		 
		if (empty($id))
			echo $this->Js->submit('Cadastrar', array('div' => false, 'update' => '#inicial'));
		else {
			echo $this->Js->submit('Salvar', array('div' => false, 'update' => '#inicial'));
			echo $ajax->submit('Excluir', array('url'=> array('controller'=>'status', 'action'=>'delete', $id), 'update' => 'inicial'));
		}
		echo $this->Form->end();
	?>
	</div>
</div>